//
//  TraderMoveManToStoreCell.m
//  WGFGlobalHouses
//
//  Created by zhouhui on 15/4/19.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//  分销商－－移动至的cell

#import "TraderMoveManToStoreCell.h"
#import "StringTool.h"


@interface TraderMoveManToStoreCell()
@property (weak, nonatomic) IBOutlet UIImageView *selectedImg;
@property (weak, nonatomic) IBOutlet UILabel *companyLab;

@end
@implementation TraderMoveManToStoreCell

+(instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"traderMoveManToStoreCell";
    TraderMoveManToStoreCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil)
    {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"TraderMoveManToStoreCell" owner:nil options:nil]lastObject];
    }
    return cell;
}


-(void)setModel:(PremisesModel *)model
{
    if (![StringTool isBlankString:model.premisesTitle]) {
        self.companyLab.text = model.premisesTitle;
    }
    if ([model.bindStatus isEqualToString:@"1"])
    {
        [self.selectedImg setImage:[UIImage imageNamed:@"danxuan_icon_b"]];
    }else if ([model.bindStatus isEqualToString:@"0"])
    {
         [self.selectedImg setImage:[UIImage imageNamed:@"danxuan_icon_a"]];
    }
   
}

-(void)setDataWith:(PremisesModel *)model WithIsSelected:(BOOL)isSeleted;
{
    if (![StringTool isBlankString:model.premisesTitle]) {
        self.companyLab.text = model.premisesTitle;
    }
    if ([model.bindStatus isEqualToString:@"1"])
    {
        [self.selectedImg setImage:[UIImage imageNamed:@"danxuan_icon_b"]];
    }else
    {
        [self.selectedImg setImage:[UIImage imageNamed:@"danxuan_icon_a"]];
    }
  

}
+(CGFloat)getHeight;
{
    return 44;
}
@end
